package umg;

public class Constants
{
	public static final String VERSION_STR = "Ver 2.0";
	public static final String START_PLAYER_DATA_BLOCK = "<tr align=\"left\"><td align=\"center\"><input class=\"checkbox\" type='checkbox' name=";
	public static final String END_PLAYER_DATA_BLOCK = "</tr>";

	public static final String PLAYERNAME_PATTERN = "<td align=\"left\" nowrap>";
	public static final String ENDDATA_PATTERN = "</td>";
	public static final String TEAM_PATTERN = "<td align=\"center\" nowrap>";
	public static final String IP_PATTERN = "<td align=\"center\">&nbsp;";
	public static final String RED_STR = "Red";
	public static final String BLUE_STR = "Blue";
	public static final String SPEC_STR = "Spec";
	public static final String SPEC_APPENDED_STR = "&nbsp;(Spectator)&nbsp;";
	public static final String RED_TEAM_PATTERN = "background-color: " + RED_STR;
	public static final String BLUE_TEAM_PATTERN = "background-color: " + BLUE_STR;
	public static final String PING_SCORE_PATTERN = "<td align=\"center\">";
	public static final String SPACE_STR = " ";
	public static final String NEWLINE = "\n";
	public static final String EMPTY_STR = "";
	public static final String COMMA_STR = ",";

	public static final String[] TABLE_HEADER =
	{ "Name", "Loc", "Ping", "Score", "IP", "Team", "WebID" };

	public static final String SETTINGS_FILE = "settings.properties";// root

	public static final String ALIAS_SEPERATOR = "|<ALIAS>|";

	public static final int MAXPLAYERS = 40;
	public static final int MAX_URLS = 10;

	public static final String APP_NAME = "UMG UT2004 Player/IP database";

	public static final long PERSIST_DB_EVERY = 60 * 60 * 1000;//60 mins
	// servers normally.
	public static final int GARBAGE_COLLECT_EVERY_RUNS = 200;
	// public static final String UMG_LOGO_IMAGE = "/logo.jpg";
	public static final String ICON_IMAGE = "/icon.gif";
	public static final String IP_LIST_SEPERATOR = ",";
	public static final String NAME_LIST_SEPERATOR = ":NAME:";
	public static final long MAX_TARDINESS = 8000;// ms. if the timer task does not run within 1 sec of its scheduled time, dont run it.
	public static final long MAX_TARDINESS_CHAT = 3000;
	public static final int CHAT_CONNECTION_TIMEOUT = 3000;
	public static final int PLAYER_CONNECTION_TIMEOUT = 3000;
	public static final Integer STATUS_EVERY_RUNS = 300;
	public static final int DEFAULT_THREAD_PRIORITY = 5;// 1 to 10, 10 is max, default 5

	public static final String AD_MESSAGE1a = "Help keep the free UMG servers online!";
	public static final String AD_MESSAGE1b = "Donate or Check out our Ads at UMGleague.com/forum!";
	public static final String AD_MESSAGE2 = "Love UT? Visit UMGleague.com/forum! Get the latest UT buzz. Mix it up, and have your say!";

	public static final int AD_INTERVAL = 6 * 60 * 1000;//5 mins
	public static final int AD_START_DELAY_INTERVAL = 3 * 60 * 1000;//3 mins
	public static final long SHOW_COUNTRIES_INTERVAL = 22 * 60 * 1000;//22 mins;
	public static final String COUNTRY_MSG = "Welcome players from ";
}
